var cols = [
    {name: 'name', display: '名称', width: 40, type: 'text', disabled: true},
    {name: 'type', display: '类型', width: 40, type: 'text', disabled: true,text_align:"left"},
    {name: 'discription', display: '描述', width: 150, type: 'text', disabled: true,text_align:"left"},
    {name:'default',display:'默认值',width:40,type:'text', disabled: true,text_align:"left"}
];




var rowspager = [
    {"name": "perPages", "type": "int", "discription": "每页包含多少条目", "default": "10"},
    {"name": "showPages", "type": "int", "discription": "中间部分一共要显示多少页(如果两边出现省略号,即它们之间的页数)", "default": "10"},
    {"name": "currentPage", "type": "int", "discription": "当前选中的页面,它会被高亮", "default": "1"},
    {"name": "_currentPage", "type": "int", "discription": "跳转台中的输入框显示的数字", "default": "=currentPage"},
    {"name": "totalItems", "type": "int", "discription": "总条目", "default": "200"},
    {"name": "totalPages", "type": "int", "discription": "总页数,求得", "default": "0"},
    {"name": "pages", "type": "[ ]", "discription": "要显示的页面组成的数字数组，如[1,2,3,4,5,6,7]", "default": "[ ]"},
    {"name": "ellipseText", "type": "string", "discription": "省略的页数用什么文字表示 ", "default": "..."},
    {"name": "prevText", "type": "string", "discription": "“下一页”分页按钮上显示的文字", "default": "<"},
    {"name": "nextText", "type": "string", "discription": "“上一页”分页按钮上显示的文字", "default": ">"},
    {"name": "firstPage", "type": "int", "discription": "当前可显示的最小页码，不能小于1", "default": "0"},
    {"name": "lastPage", "type": "int", "discription": "当前可显示的最大页码，不能大于totalPages", "default": "0"},
    {"name": "alwaysShowNext", "type": "bool", "discription": "总是显示向后按钮", "default": "false"},
    {"name": "alwaysShowPrev", "type": "bool", "discription": "总是显示向前按钮", "default": "false"},
    {"name": "showJumper", "type": "bool", "discription": "是否显示输入跳转台", "default": "false"},
    {"name": "options", "type": "[ ]", "discription": "设置页码选择[5,10,50]", "default": "[ ]"}
    

];

avalon.library("aoyou", {
    $ready: function () {
        avalon.log("控件已经构建完毕")
    }
})

define(["../../component/pager/avalon.pager","../../component/newtable/avalon.newtable"], function(){
    var tv = avalon.define({
        $id:"test1",
        $opts: {
            
        },
        $tdpageropt:{
            title_align:"center",
            title:"分页属性",
            cols:cols,
            rows:rowspager,
            autoLoad:true,
            bar:true
        }

    });
    return tv;
});